package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户的持久层接口
 */
public interface UserMapper {

    @Select("select * from user")
    List<User> findAll();

    @Delete("delete from user where id=#{id}")
    void delete(Integer id);
}
